
select @ExtendedPropertyValue = CAST(value AS nvarchar(2000)) from 
::fn_listextendedproperty(@ExtendedProperty, null,
 null, null, null, null, null);
	
IF @@rowcount = 0 set @ExtendedPropertyValue = '';

